package org.spring.sample.restful.common.filter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;

/**
 * 由于过滤器不能改变传入参数，继承HttpServletRequestWrapper，可以修改传入到controller的参数
 * 
 * @author huds
 *
 */
public class IndexHttpServletRequestWrapper extends HttpServletRequestWrapper {

	public IndexHttpServletRequestWrapper(HttpServletRequest request) {
		super(request);
	}

	/**
	 * 获取参数
	 */
	@Override
	public String getParameter(String name) {
		return super.getParameter(name);
	}

	/**
	 * 获取参数
	 */
	@Override
	public String[] getParameterValues(String name) {
		return super.getParameterValues(name);
	}

}
